package com.ruoyi.project.system.domain.BeiDiao;

import com.ruoyi.project.system.domain.dto.QueryData;
import lombok.Data;

@Data
public class Misconduct extends Base {

    private String level;

    public Misconduct() {
    }

    public Misconduct(String orderNo, QueryData result) {
        this.setOrderNo(orderNo);
        this.setMsg(result.getMsg());
        if (result.isSuccess()){
            this.setStatus("1");
            this.setLevel(result.getInfo().toString());
        } else {
            this.setStatus("9");
        }
    }

}
